module.exports = () => {
    return async (ctx,next) => {
        let startTime = new Date().getTime(); //获取时间戳
        await next();
        let endTime = new Date().getTime(); //结束时间戳
        let timer = endTime - startTime;
        console.log(`${ctx.url}--${timer}`); //消耗的时间
    }
}